package com.ghca.myinfo3.process.entity;

import com.ghca.myinfo3.system.entity.User;

import javax.persistence.Entity;
import java.util.Date;
import java.util.EventObject;

/**
 * Created by Administrator on 2016/12/23.
 */
public class BaseEventObject extends EventObject {

    private String type;

    private Date date;

    private User user;

    public BaseEventObject(Object source) {
        super(source);
    }

    public BaseEventObject(Object source, String type, Date date) {
        super(source);
        this.type = type;
        this.date = date;
    }

    public BaseEventObject(Object source, String type) {
        this(source, type, new Date());
    }

    public String getType() {
        return type;
    }

    public Date getDate() {
        return date;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}